home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 1.iso / desktop / rwin05a.zip / STREXT.H < prev   
C/C++ Source or Header  |  1994-08-01  |  2KB  |  51 lines

  1. /*
  2.  * RWindows 0.5a Beta release 2    Windows startup screen randomizer
  3.  * Copyright (C) 1994 Michael Lea
  4.  * 
  5.  * This program is free software; you can redistribute it and/or modify it
  6.  * under the terms of the GNU General Public License as published by the
  7.  * Free Software Foundation; either version 2 of the Licence, or any later
  8.  * version.
  9.  */
  10.  
  11. #include <strings.h>
  12.  
  13. // OVERLOAD strcat() TO ALLOW CONCATENATION OF MULTIPLE STRINGS IN A SINGLE COMMAND
  14.  
  15. char *strcat(char *s1, const char *s2, const char *s3);
  16. char *strcat(char *s1, const char *s2, const char *s3, const char *s4);
  17. char *strcat(char *s1, const char *s2, const char *s3, const char *s4, const char *s5);
  18. char *strcat(char *s1, const char *s2, const char *s3, const char *s4, const char *s5, const char *s6);
  19.  
  20. char *strcat(char *s1, const char *s2, const char *s3)
  21. {
  22.         s1 = strcat(s1, s2);
  23.         if (s1 != NULL)
  24.                 s1 = strcat(s1, s3);
  25.         return s1;
  26. }
  27.  
  28. char *strcat(char *s1, const char *s2, const char *s3, const char *s4)
  29. {
  30.         s1 = strcat(s1, s2, s3);
  31.         if (s1 != NULL)
  32.                 s1 = strcat(s1, s4);
  33.         return s1;
  34. }
  35.  
  36. char *strcat(char *s1, const char *s2, const char *s3, const char *s4, const char *s5)
  37. {
  38.         s1 = strcat(s1, s2, s3, s4);
  39.         if (s1 != NULL)
  40.                 s1 = strcat(s1, s5);
  41.         return s1;
  42. }
  43.  
  44. char *strcat(char *s1, const char *s2, const char *s3, const char *s4, const char *s5, const char *s6)
  45. {
  46.         s1 = strcat(s1, s2, s3, s4, s5);
  47.         if (s1 != NULL)
  48.                 s1 = strcat(s1, s6);
  49.         return s1;
  50. }
  51.